home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / manageme / tcpdump-.001 / tcpdump-~ / tcpdump-3.0.2-linux / tcpdump-3.0.2 / os-sunos4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-21  |  2.8 KB  |  79 lines

  1. /*
  2.  * Copyright (c) 1989, 1990, 1993, 1994, 1995
  3.  *    The Regents of the University of California.  All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that: (1) source code distributions
  7.  * retain the above copyright notice and this paragraph in its entirety, (2)
  8.  * distributions including binary code include the above copyright notice and
  9.  * this paragraph in its entirety in the documentation or other materials
  10.  * provided with the distribution, and (3) all advertising materials mentioning
  11.  * features or use of this software display the following acknowledgement:
  12.  * ``This product includes software developed by the University of California,
  13.  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  14.  * the University nor the names of its contributors may be used to endorse
  15.  * or promote products derived from this software without specific prior
  16.  * written permission.
  17.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  18.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  19.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  * @(#) $Header: os-sunos4.h,v 1.17+ 94/06/12 14:34:23 leres Exp $ (LBL)
  22.  */
  23.  
  24. /* Map things in the ether_arp struct */
  25. #define SHA(ap) ((ap)->arp_sha.ether_addr_octet)
  26. #define SPA(ap) ((ap)->arp_spa)
  27. #define THA(ap) ((ap)->arp_tha.ether_addr_octet)
  28. #define TPA(ap) ((ap)->arp_tpa)
  29.  
  30. #define EDST(ep) ((ep)->ether_dhost.ether_addr_octet)
  31. #define ESRC(ep) ((ep)->ether_shost.ether_addr_octet)
  32.  
  33. /* Map protocol types */
  34. #define ETHERPUP_IPTYPE ETHERTYPE_IP
  35. #define ETHERPUP_REVARPTYPE ETHERTYPE_REVARP
  36. #define ETHERPUP_ARPTYPE ETHERTYPE_ARP
  37.  
  38. /* Eliminate some bogus warnings. */
  39. struct timezone;
  40. struct timeval;
  41.  
  42. /* Prototypes missing in SunOS 4 */
  43. int    _flsbuf(u_char, FILE *);
  44. int    bcmp(const char *, const char *, u_int);
  45. void    bcopy(const void *, void *, u_int);
  46. int    close(int);
  47. void    endservent(void);
  48. int    fclose(FILE *);
  49. int    fflush(FILE *);
  50. int    fprintf(FILE *, const char *, ...);
  51. int    fputc(int, FILE *);
  52. int    fputs(const char *, FILE *);
  53. u_int    fread(void *, u_int, u_int, FILE *);
  54. u_int    fwrite(const void *, u_int, u_int, FILE *);
  55. long    gethostid(void);
  56. int    getopt(int, char * const *, const char *);
  57. int    gettimeofday(struct timeval *, struct timezone *);
  58. int    ioctl(int, int, caddr_t);
  59. off_t    lseek(int, off_t, int);
  60. #ifdef __GNUC__
  61. #if __GNUC__ == 1
  62. void    *malloc(u_int);
  63. #endif
  64. #else
  65. char    *malloc(u_int);
  66. #endif
  67. void    perror(const char *);
  68. int    printf(const char *, ...);
  69. int    puts(const char *);
  70. #if __GNUC__ <= 1
  71. int    read(int, char *, u_int);
  72. #endif
  73. int    setlinebuf(FILE *);
  74. int    socket(int, int, int);
  75. int    sscanf(char *, const char *, ...);
  76. int    strcasecmp(const char *, const char *);
  77. long    tell(int);
  78. int    vfprintf(FILE *, const char *, ...);
  79.